package com.spic.system.activiti.mapper;

import com.spic.system.activiti.domain.BusinessStatus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessStatusMapper {

    /**
     * 查询业务状态实体列表
     *
     * @param businessStatus 业务状态实体
     * @return 业务状态实体集合
     */
    public List<BusinessStatus> selectBusinessStatusList(BusinessStatus businessStatus);

    /**
     * 新增业务状态实体
     *
     * @param businessStatus 业务状态实体
     * @return 结果
     */
    public int insertBusinessStatus(BusinessStatus businessStatus);

    /**
     * 修改业务状态实体
     *
     * @param businessStatus 业务状态实体
     * @return 结果
     */
    public int updateBusinessStatus(BusinessStatus businessStatus);


    public int deleteBusinessStatusByBusinessKeys(String[] businessKeys);


    List<BusinessStatus> selectStatus(BusinessStatus businessStatus);

    List<BusinessStatus> selectStatusByIds(@Param("type") String type, @Param("businessKeys") List<String> businessKeys);

    List<BusinessStatus> selectBusinessStatusListAll(BusinessStatus businessStatus);

    List<BusinessStatus> selectByInstanceId(@Param("processInstanceIds") List<String> processInstanceId);

    int updateStateByInstanceId(BusinessStatus bs);
}
